<?php
/*************************************************/
/*     __            __    ____                  */
/*    / / ___  ____ / /_  / __/__  ____ __ ___   */
/*   / /_/ -_|/ __//  _/ _\ \/ ° // __// // _ \  */
/*  /___/\__//_/  /_/   /___/\__//_/  /_//_//_/  */
/*                                               */
/*************************************************/
class IndexControleur extends Controleur{
	
	
	/**
	 * Action par défaut
	 * @param mixed $data
	 */
	function defaultAction($data){

		$menu = new Menu();
		$menu->select('Actualite');
		


		/* ZONE DE TEST */



		
		//$aContext = array(
		//    'http' => array(
		//        'proxy' => 'tcp://proxy.groupinfra.com:3128',
		//        'request_fulluri' => true, 
		//    )
		//);
		//$cxContext = stream_context_create($aContext);
		

		//$url = "http://census.soe.com/get/ps2/outfit?c:lang=en&outfit_id=2147483648";
		//$url2 = "http://census.soe.com/get/ps2/outfit?c:lang=en&outfit_id=37516961520049105";
		//$url3 = "http://www.google.fr";
		//$ligne = file_get_contents($url2, false, $cxContext);
		//$ligne = '{"outfit_list":[{"name":"Loup Blanc","alias":"FRLB","alias_lower":"frlb","leader_character_id":"5428041429977558497","member_count":"109","name_lower":"loup blanc","outfit_id":"37516961520049105","time_created":"1382512668","time_created_date":"2013-10-23 07:17:48.0"}],"returned":1}';
		
		//$data = json_decode($ligne, true);

		//$content = $data["outfit_list"];
		//Utile::affTab($data);

		/* ZONE DE TEST */




		$actu = new Actu();
		
		$this->affiche(new IndexVue('default', $actu->get10()), true, $menu);
	}
}
?>